package ProvinceAndCity;

import java.util.*;

public class ProvinceAndCity {
    public static void main(String[] args) {
        HashMap<String,List<String>> PRO = new HashMap<>();
        List<String> city = new ArrayList<>();
        city.add("长春");
        city.add("延边");
        city.add("吉林");
        city.add("白山");
        city.add("白城");
        city.add("四平");
        city.add("松原");
        PRO.put("吉林",city);

        List<String> city1 = new ArrayList<>();
        city1.add("哈尔滨");
        city1.add("齐齐哈尔");
        city1.add("黑河");
        city1.add("大庆");
        PRO.put("黑龙江",city1);

        List<String> city2 = new ArrayList<>();
        city2.add("上海市");
        PRO.put("上海",city2);
        List<String> city3 = new ArrayList<>();
        city3.add("天津市");
        PRO.put("天津",city3);
        List<String> city4 = new ArrayList<>();
        city4.add("石家庄市");
        city4.add("唐山市");
        city4.add("秦皇岛市");
        city4.add("张家口市");
        PRO.put("河北",city4);
        List<String> city5 = new ArrayList<>();
        city5.add("重庆市");
        PRO.put("重庆",city5);
        List<String> city6 = new ArrayList<>();
        city6.add("北京市");
        PRO.put("北京",city6);

        System.out.println("----------------------------------");

       System.out.println("黑龙江"+" "+"上海"+" "+"吉林"+" "+"天津"+" "+"河北"+" "+"重庆"+" "+"北京");
        System.out.println("请选择你所在的省份");
        Scanner scanner = new Scanner(System.in);
        String num = scanner.next();

        if (num.equals("吉林")){
            System.out.println(city);
            System.out.println("请选择您的城市");

            String cit = scanner.next();
            System.out.println("信息登记完毕");
        } else if (num.equals("黑龙江")) {
            System.out.println(city1);
            System.out.println("请选择您的城市");
            String cit = scanner.next();
            System.out.println("信息登记完毕");

        } else if (num.equals("上海")) {
            System.out.println(city2);
            System.out.println("请选择您的城市");
            String cit = scanner.next();
            System.out.println("信息登记完毕");
        }else if (num.equals("天津")) {
            System.out.println(city3);
            System.out.println("请选择您的城市");
            String cit = scanner.next();
            System.out.println("信息登记完毕");
        }else if (num.equals("河北")) {
            System.out.println(city4);
            System.out.println("请选择您的城市");
            String cit = scanner.next();
            System.out.println("信息登记完毕");
        }else if (num.equals("重庆")) {
            System.out.println(city5);
            System.out.println("请选择您的城市");
            String cit = scanner.next();
            System.out.println("信息登记完毕");
        }else if (num.equals("北京")) {
            System.out.println(city6);
            System.out.println("请选择您的城市");
            String cit = scanner.next();
            System.out.println("信息登记完毕");
        }else {
            System.out.println("请重新输入正确的省份");
        }

    }
}
